package com.levi.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.levi.pojo.Product;
import com.levi.vo.CartVo;
import com.levi.vo.ProductDetailVo;
import com.levi.vo.ProductVo;
import com.levi.vo.ResponseVo;

/**
 * @author shentong
 * @since 2022/3/29 9:33 PM
 */
public interface ProductService extends IService<Product> {


    ResponseVo<PageInfo<ProductVo>> getList(Integer categoryId, Integer pageNum, Integer pageSize);

    ResponseVo<ProductDetailVo> getInfo(Integer productId);


    ResponseVo<PageInfo<ProductVo>> allProducts(Integer pageNum, Integer pageSize);
}
